package com.ys.fmms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.fmms.pojo.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionService extends IService<Permission> {
    List<Permission> getAllMenuList();

    void removeChildById(String id);

    void saveRolePermissionRelationship(String roleId, String[] permissionId);

    List<Permission> getMenuListByRoleId(String roleId);

    Map<String,Object> getUserMenuAndButtonList(String token);
}
